const WfInterface = {
    __btnEventObj: {},
    bindBtnEvent: function(route,btnKey,fn){
        const key = `${route}|${btnKey}`;
        this.__btnEventObj[key] = fn;
    },
    execBtnEvent: function(route,btnKey,callback){
        const key = `${route}|${btnKey}`;
        if(key in this.__btnEventObj)
            this.__btnEventObj[key](callback);
        else
            callback();
    }
}

window.WfInterface = WfInterface;

export default WfInterface;